package com.WJY.controller;

import com.WJY.service.TeacherService;
import lombok.Data;


public class TeacherController {

    private TeacherService teacherService;

    public void setTeacherService(TeacherService teacherService) {
        this.teacherService = teacherService;
    }

    public void query(){
        System.out.println(teacherService.queryTeacherById(2));
    }
}
